home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-10-16 | 1.5 KB | 59 lines |
- # Makefile.all
- #
- # by Mike Ferris
- # Part of MOKit
- # Copyright 1993, all rights reserved
- #
- # Used in the MiscKit by permission.
- #
- # This is based on Next's standard library make architecture
-
- ##################### Rules to make the whole library #####################
-
- # making the name of the lib should cause all to be made
- $(NAME): all
-
- all:: $(SYMROOT) $(OBJROOT)
-
- # makes the product
- $(PRODUCT): ofiles $(SYMROOT) $(OBJROOT)
- $(ARCHIVER) $(SYMROOT)/$(PRODUCT) $(OFILES)
- $(RANLIB) $(RANLIBFLAGS) $(SYMROOT)/$(PRODUCT)
-
- optimized:: $(SYMROOT) $(OBJROOT)
- @$(ECHO) '************ $(NAME) Optimized library ************'
- @$(MAKE) $(OPT_LIB) \
- "PRODUCT = $(OPT_LIB)" \
- "OFILE_DIR = $(OBJROOT)/$(OPT_OBJ)" \
- "SYM_DIR = $(SYMROOT)/sym" \
- "OBJROOT = $(OBJROOT)" \
- "SYMROOT = $(SYMROOT)" \
- "CFLAGS = $(OPTCFLAGS)"
-
- debug:: $(SYMROOT) $(OBJROOT)
- @$(ECHO) '************ $(NAME) Debug library ************'
- @$(MAKE) $(DEBUG_LIB) \
- "PRODUCT = $(DEBUG_LIB)" \
- "OFILE_DIR = $(OBJROOT)/$(DEBUG_OBJ)" \
- "SYM_DIR = $(SYMROOT)/sym" \
- "OBJROOT = $(OBJROOT)" \
- "SYMROOT = $(SYMROOT)" \
- "CFLAGS = $(DEBUGCFLAGS)"
-
- profile:: $(SYMROOT) $(OBJROOT)
- @$(ECHO) '************ $(NAME) Profile library ************'
- @$(MAKE) $(PROFILE_LIB) \
- "PRODUCT = $(PROFILE_LIB)" \
- "OFILE_DIR = $(OBJROOT)/$(PROFILE_OBJ)" \
- "SYM_DIR = $(SYMROOT)/sym" \
- "OBJROOT = $(OBJROOT)" \
- "SYMROOT = $(SYMROOT)" \
- "CFLAGS = $(PROFCFLAGS)"
-
- $(SYMROOT) $(OBJROOT)::
- @if [ ! -d $@ ] ; then \
- $(ECHO) $(MKDIRS) $(MKDIRSFLAGS) $@ ; \
- $(MKDIRS) $(MKDIRSFLAGS) $@ ; \
- fi
-
-